<template>
    <div class="standbybox">
        <mylogo></mylogo>
    </div>
</template>
<script>
import mylogo from '../small/mylogo.vue'
export default {
    name:"standby",
    components:{
        mylogo
    },
    data(){
        return {
            tim : null
        }
    },
    created(){
        this.$store.commit('changenavshow', false)
        this.getgg()
    },
    methods:{
        getgg(){
            this.tim = setTimeout(()=>{
                this.getdata()
                clearTimeout(this.tim)
                this.tim = null
            },1500)
        },
        getdata(){
            axios.get('https://apis.netstart.cn/yunyuedu/novice.json').then(
              res=>{
                  if(sessionStorage.getItem("gg") !== null){
                    this.$router.push("/index")
                  }else{
                    this.$router.push("/advertise")
                  }
              },
              err=>{
                console.log(err)
              }
            )
        }
    }
}
</script>
<style lang="less">
@import '../other/all.less';
.standbybox{
    width: 100%;
    height: 100%;
}

</style>